<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../component/pear/css/pear.css" media="all">
    <style>
        .layui-form-label {
            width: 70px;
        }
    </style>
</head>
<body>
<form class="layui-form" action="" lay-filter="form">
    <div class="layui-form-item" style="margin-top: 10px;">
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">菜单名称</label>
            <div class="layui-input-inline">
                <input type="text" name="menuName" required lay-verify="required" placeholder="请输入菜单名称"
                       autocomplete="off"
                       class="layui-input ">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">显示顺序</label>
            <div class="layui-input-inline">
                <input type="number" name="orderNum" required lay-verify="required" placeholder="请输入显示顺序"
                       autocomplete="off"
                       class="layui-input layui-input-required">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">上级菜单</label>
            <div class="layui-input-inline" style="width: 502px">
                <div id="parentMenuId" class="xm-select-demo"></div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">菜单类型</label>
            <div class="layui-input-inline" id="menuType" style="width: 502px">

            </div>
        </div>
    </div>
    <div class="layui-form-item" id="openTypeDiv" style="display: none;">
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">打开方式</label>
            <div class="layui-input-inline" id="openType" style="width: 502px">

            </div>
        </div>
    </div>
    <div class="layui-form-item" id="iconDiv">
        <div class="layui-inline">
            <label class="layui-form-label">菜单图标</label>
            <div class="layui-input-inline" style="width: 502px">
                <input type="text" name="icon" placeholder="请输入菜单图标" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item" id="permsDiv" style="display: none;">
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">权限标识</label>
            <div class="layui-input-inline" style="width: 502px">
                <input type="text" name="perms" id="perms" lay-verify="perms" placeholder="请输入权限标识"
                       autocomplete="off"
                       class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item" id="urlDiv" style="display: none;">
        <div class="layui-inline">
            <label class="layui-form-label layui-input-required">路由地址</label>
            <div class="layui-input-inline" style="width: 502px">
                <input type="text" name="url" id="url" lay-verify="url" placeholder="请输入路由地址" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit=""
                    lay-filter="menuEditForm">
                确定
            </button>
            <button type="button" id="cancelBtn" class="pear-btn pear-btn-sm">
                取消
            </button>
        </div>
    </div>
</form>
<script src="../../component/jquery/jquery.min.js"></script>
<script src="../../component/layui/layui.js"></script>
<script src="../../component/pear/pear.js"></script>
<script src="../../admin/js/common/common.js"></script>
<script src="../../admin/js/auth/menusEdit.js"></script>
</body>
</html>